iT邦幫忙

0

[ Solve] git did not exit cleanly (exit code 1) error: RPC failed; HTTP 413 curl 22

  • 分享至 

  • xImage
  •  

Gitlab push 後產的問題

git.exe push --progress "origin" main:main
warning: redirecting to https://gitlab.muzixt.com/afb-front-mantain/pc.git/
Enumerating objects: 1443, done.
Counting objects: 100% (1443/1443), done.
Delta compression using up to 12 threads
Compressing objects: 100% (1421/1421), done.
Writing objects: 100% (1442/1442), 59.32 MiB | 21.37 MiB/s, done.
Total 1442 (delta 217), reused 0 (delta 0), pack-reused 0
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

git did not exit cleanly (exit code 1)

1.修改Gitlab大小限制 ( 可以從UI上調整)
linux設定檔亦可做調整

git config --global http.postBuffer 524288000
git config --global https.postBuffer 524288000

修改/etc/gitlab/gitlab.rb

vi /etc/gitlab/gitlab.rb
nginx['client_max_body_size'] = '1024m'

修改完後重啟

gitlab gitlab-ctl reconfigure
gitlab gitlab-ctl restart

2.若修改完仍無法,可能卡在域名的CDN限制大小也會報此同樣的error
調整CDN限制或是改用IP


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言